<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'showAllTies.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<!-- 下面是点击页数的js -->
	<script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="assets/js/tiezi/fenye.js"></script>

  </head>
  
  <body>
    <br>
     <div align="center">
     	<form action="tieziAction_showSingleTiezi.action" id="pageForm" method="post">
     		<input type="hidden" id="page" name="curPage">
     	</form>
    	<div align="center">
    		<%
    			Integer str =(Integer) request.getAttribute("pageCount");
    			int count = str.intValue();
    			for(int i = 1 ;i <=count;i++){
    		%>
    			<input type="button"  value="<%= i %>">
    		<%
    			}
    		 %>
 
    	</div>
    </div>
    <div id="showallties" align="center">
    	<table border="1" width="700" height="400">
    		<thead>
    			<tr>
    				<td>&nbsp;标题&nbsp;</td>
    				<td>发帖人</td>
    				<td>发帖人的角色</td>
    				<td>发帖时间</td>
    			</tr>
    		</thead>
    		
    		 <s:iterator value="allties_list">
    			<tr>
    				<td><a href="tieziAction_showSingleTiezi.action?replyer=${member.name}&tiezi_id=${id}&curPage=1"><s:property value="tags"/></a></td>
			    	<td><s:property value="member.name"/></td>
			    	<td><s:property value="member.role"/></td>
			    	<td><s:property value="postdate"/></td>
		    	</tr>
		    </s:iterator>
    	</table>
    </div>
   
   
  </body>
</html>
